package cn.tx.sboot.ioc;/*
 *
 * @author 陈粒
 * @version 创建时间：2021/8/13 15:17
 */

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
//@Service
//@Component
@Controller
//这三个注解都能用来ioc，作用都一样
public class User {
    public void get(){{
        System.out.println("123");}
    }
}
